/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question1.polymophism.studentImpl;

/**
 *
 * @author spheshie
 */
public abstract class StudentImpl{
    
    private String name;
    private String studNum;
    private double loanAmount;
    
    public StudentImpl()
    {
        
    }
    
    public StudentImpl(String nm, String num, double amt)
    {
        name = nm;
        studNum = num;
        loanAmount = amt;
    }
    
    public double getLoanAmount()
    {
        return loanAmount;
    }
    
    public String toString()
    {
        return "name: " + name + " loan amount is: " + loanAmount;
    }
}